{if !$ajax}
{include(file='header.tpl')}
                {if $error_message}
                <div class="error">{$language_error_main}: {$error_message}
                </div>
                {/if}
                {if $is_global}
                <h2>{$language_heading_global}</h2>
                {else}
	           <div id="choose-project-div">
                    <form action="{$base_uri}index.php?input=project" method="get" id="choose-project-form">
                        <input type="hidden" name="input" value="project" />
                        <label for="choose-project">{$language_select_project}</label>
                        <select name="t_id" id="choose-project" class="selectbox">
        	                   {foreach $arr_topics key item}
                               <option value="{$item.t_id}"{if $item.t_id==$t_id} selected{/if}>{$item.t_name}</option>
                               {/foreach}
        	               </select>
                        <input type="submit" value="{$language_submit_select}">
                    </form>
                </div>
                <h2>{$language_heading_project}: <span id="project_title">{$project_title}</span></h2>
                {/if}
	           <div id="searchform_container">
    	           <form id="search_form">
    	               <input type="text" value="" placeholder="{$language_input_placeholder_title}" name="title" id="t_title" />
    	               {if $is_global}
    	               <select name="topic" id="t_thema">
    	                   <option value="0">{$language_option_topic}</option>
    	                   {foreach $arr_topics key item}
                           <option value="{$item.t_name}">{$item.t_name}</option>
                           {/foreach}
    	               </select>
    	               {/if}
    	               <select name="topic" id="t_thema2">
    	                   <option value="0">{$language_option_globaltopic}</option>
    	                   {foreach $arr_verified_topics key item}
                           <option value="{$item.tag_name}">{$item.tag_name}</option>
                           {/foreach}
    	               </select>
    	               <select name="gebiet" id="t_gebiet">
    	                   <option value="0">{$language_option_region}</option>
    	                   {loop $arr_regions}
                           <option value="{$g_name}">{$g_name}</option>
                           {/loop}
    	               </select>
    	               <select name="ebene" id="t_ebene">
    	                   <option value="0">{$language_option_layer}</option>
                           {loop $arr_layers}
                           <option value="{$e_abbr}">{$e_name}</option>
                           {/loop}
    	               </select>
    	               {if !$is_global}
    	               <select name="verified" id="t_verified">
    	                   <option value="0">{$language_table_header_verified_data}</option>
    	                   <option value="{$language_verified_yes}">{$language_verified_yes}</option>
    	                   <option value="{$language_verified_no}">{$language_verified_no}</option>
    	               </select>
    	               {/if}
    	               <input type="submit" value="{$language_submit_filter}" />
    	               <input type="reset" value="{$language_reset_view_all}" />
    	           </form>
	           </div>
	           <div id="datatable_div">
{/if}
    	           <table id="datatable">
    	               <tr>
    	                   <th class="t_title">{$language_table_header_title}</th>
    	                   {if $is_global}<th class="t_thema">{$language_table_header_project}</th>{/if}
    	                   <th class="t_thema2">{$language_table_header_globaltopic}</th>
    	                   <th>{$language_table_header_tag}</th>
    	                   <th class="t_gebiet">{$language_table_header_region}</th>
    	                   <th class="t_ebene">{$language_table_header_layer}</th>
    	                   <th>{$language_table_header_creation_date}</th>
    	                   <th>{$language_table_header_author}</th>
    	                   {if !$__.is_global}<th class="t_verified">{$language_table_header_verified_data}</th>{/if}
    	               </tr>
    	               {loop $arr_datatables}
    	               <tr>
                          <td><a href="{$__.base_uri}index.php?input=map&amp;m_id={$dt_id}">{$dt_titel}</a></td>
                          {if $__.is_global}<td><a href="{$__.base_uri}index.php?input=project&amp;t_id={$t_id}">{$t_name}</a></td>{/if}
                          <td>{$globaltopic}</td>
                          <td class="table_date"><a href="{$__.base_uri}index.php?input=search&amp;type=tag&amp;tag_id={$tag_id}">{$tag_name}</a></td>
                          <td>{$g_name}</td>
                          <td>{$e_name}<span class="skip">{$e_abbr}</span></td>
                          <td class="table_date">{date_format $dt_time "%d.%m.%Y"}</td>
                          <td class="table_date">{$dt_user}</td>
                         {if !$__.is_global}<td>{if $dt_verified_data}{$__.language_verified_yes}{else}{$__.language_verified_no}{/if}</td>{/if}
                        </tr>
                       {/loop}
    	           </table>
{if !$ajax}
    	       </div>
	           {if $is_global}
                <p class="button"><a href="{$base_uri}index.php?input=project&amp;t_id={$t_id}">{$language_switch_to_projectview}</a></p>
                {else}
                <p class="button"><a href="{$base_uri}index.php?input=global">{$language_switch_to_verifiedview}</a></p>
                {/if}
{include(file='js.tpl')}
                {if !$is_global}
                <script type="text/javascript">
                /* <![CDATA[ */
                {literal}
                    new GIS_Selectbox({global_eventlistener: false});
                {/literal}
                /* ]]> */
                </script>
                {else}
                <script type="text/javascript">
                /* <![CDATA[ */
                new Policies_Ui();
                /* ]]> */
                </script>
                {/if}
{include(file='footer.tpl')}
{/if}
